<template>
	<view>
		<page-head :title="'用户协议'" :headtype="2"></page-head>
		<view class="marginAuto" style="width:90%;padding: 24rpx 0;">
			<u-parse :content="content"></u-parse>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content:''
			};
		},
		onLoad() {
			this.initData()
		},
		methods: {
			initData(){
				let sendData = {
					field:'user_agreement'
				};
				this.apifun.unirequest('/api/index/getConfigInfo','post',sendData,(res)=>{
					// console.log(res)
					if(res.code === 200){
						let datas = res.data;
						this.content = datas;
					}else{
						this.apifun.toast(res.msg)
					}
				})
			}
		},
	};
</script>

<style scoped lang="scss">
</style>